package cn.sciento.onelink.sim.combo.offering.detail;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;

/**
 * 资费详情实时查询
 * @author walton
 */
@Data
public class SimOfferingsDetailRequest extends LinkRequest<CommonResponse<SimOfferingsDetailResult>> {
    private String appId;
    private String token;
    private String offeringId;

    public SimOfferingsDetailRequest(String appId, String token, String offeringId) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.offeringId = offeringId;
        this.path = "/ec/query/offerings-detail";
        HashMap<String, Object> headMap = new HashMap<String, Object>();
        this.setHeader(headMap);
        HashMap<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token",token);
        bodyMap.put("offeringId",offeringId);
        this.setCompleteUrl(this.path,bodyMap);

    }
}
